home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / Evas_Engine_Software_X11.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-01-09  |  1.8 KB  |  49 lines

  1. #ifndef _EVAS_ENGINE_SOFTWARE_X11_H
  2. #define _EVAS_ENGINE_SOFTWARE_X11_H
  3.  
  4. #include <X11/Xlib.h>
  5.  
  6. typedef struct _Evas_Engine_Info_Software_X11              Evas_Engine_Info_Software_X11;
  7.  
  8. struct _Evas_Engine_Info_Software_X11
  9. {
  10.    /* PRIVATE - don't mess with this baby or evas will poke its tongue out */
  11.    /* at you and make nasty noises */
  12.    Evas_Engine_Info magic;
  13.  
  14.    /* engine specific data & parameters it needs to set up */
  15.    struct {
  16.       Display  *display;
  17.       Drawable  drawable;
  18.       Pixmap    mask;
  19.       Visual   *visual;
  20.       Colormap  colormap;
  21.       int       depth;
  22.       int       rotation;
  23.  
  24.       int       alloc_grayscale : 1;
  25.       int       debug : 1;
  26.       int       shape_dither : 1;
  27.  
  28.       int       alloc_colors_max;
  29.    } info;
  30.    /* engine specific function calls to query stuff about the destination */
  31.    /* engine (what visual & colormap & depth to use, performance info etc. */
  32.    struct {
  33.       Visual *  (*best_visual_get)   (Display *disp, int screen);
  34.       Colormap  (*best_colormap_get) (Display *disp, int screen);
  35.       int       (*best_depth_get)    (Display *disp, int screen);
  36.  
  37.       Evas_Performance *(*performance_test)         (Evas *e, Display *disp, Visual *vis, Colormap cmap, Drawable draw, int depth);
  38.       void              (*performance_free)         (Evas_Performance *perf);
  39.       char *            (*performance_data_get)     (Evas_Performance *perf);
  40.       char *            (*performance_key_get)      (Evas_Performance *perf);
  41.       Evas_Performance *(*performance_new)          (Evas *e, Display *disp, Visual *vis, Colormap cmap, Drawable draw, int depth);
  42.       void              (*performance_build)        (Evas_Performance *perf, const char *data);
  43.       void              (*performance_device_store) (Evas_Performance *perf);
  44.    } func;
  45. };
  46. #endif
  47.  
  48.  
  49.